package dna.deoxynucleosides;

import core.molecules.organic.glycosylamines.Glycosylamine;
import core.molecules.organic.phosphate.Phosphate;
import dna.nucleobase.Nucleobase;
import dna.sugars.Deoxyribose;
import dna.sugars.Ribose;

/**
 * Model for a deoxynucleoside macromolecule
 * @author Julian
 *
 * @param <T>
 */
public abstract class Deoxynucleoside<T extends Nucleobase> extends Glycosylamine<Deoxyribose, Nucleobase> {

private Phosphate myPhospate;
	
	public Deoxynucleoside(T n, Phosphate p, int id) {
		super(new Deoxyribose(id), n, id);
		myPhospate = p;
	}

	public void setPhospate(Phosphate phosphate) {
		this.myPhospate = phosphate;
	}

	public Phosphate getPhospate() {
		return myPhospate;
	}
}
